/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-09-10
*/
package com.rzico.order.service;

import com.rzico.base.BaseMapper;
import com.rzico.base.impl.BaseServiceImpl;
import com.rzico.basics.entity.Product;
import com.rzico.order.entity.GroupProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzico.order.mapper.GroupProductMapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <pre>
 * 团购清单业务类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Service
public class GroupProductService extends BaseServiceImpl<GroupProduct, String> {

    @Autowired
    private GroupProductMapper groupProductMapper;

    @Override
    public BaseMapper<GroupProduct, String> getMapper() {
        return groupProductMapper;
    }

    public List<GroupProduct> getItemList(Long groupBuyId) {
        Map<String,Object> params = new HashMap<>();
        params.put("groupBuyId",groupBuyId);
        return groupProductMapper.selectList(params);
    }

}
